﻿// ==========================================================
// File: TeamWorkNet.Portable.Comment.cs
// Created: 14.02.2015
// Created By: Tim cadenbach
// 
// Copyright (C) 2015 Tim Cadenbach
// License: Apache License 2.0
// ==========================================================

using Newtonsoft.Json;

namespace TeamWorkNet.Model
{
  public class Comment
  {
    [JsonProperty("id")]
    public string Id { get; set; }

    [JsonProperty("commentable_type")]
    public string CommentableType { get; set; }

    [JsonProperty("body")]
    public string Body { get; set; }

    [JsonProperty("author_id")]
    public string AuthorId { get; set; }

    [JsonProperty("author-firstname")]
    public string AuthorFirstname { get; set; }

    [JsonProperty("author-lastname")]
    public string AuthorLastname { get; set; }

    [JsonProperty("author-avatar-url")]
    public string AuthorAvatarUrl { get; set; }

    [JsonProperty("commentable-id")]
    public string CommentableId { get; set; }

    [JsonProperty("attachments-count")]
    public string AttachmentsCount { get; set; }

    [JsonProperty("emailed-from")]
    public string EmailedFrom { get; set; }

    [JsonProperty("datetime")]
    public string Datetime { get; set; }

    [JsonProperty("private")]
    public bool Private { get; set; }
  }
}